<template>
  <Demo address="河南" sex="男" @hello="sayHello"></Demo>
  {{ h }}
</template>

<script>

import Demo from "@/components/Demo";
import {ref} from "vue";

export default {
  name: 'App',
  components: {Demo},
  setup() {
    let h = ref('你好啊');

    function sayHello(value) {
      h.value = value;
    }

    return {
      h,
      sayHello
    }
  }
}
</script>

<style>
</style>
